#include <iostream>
#include <string>
#include "../Utils/JsonUtil.h"
#include "../Request/RequestDispatcher.h"
using namespace std;
int main()
{
	RequestDispatcher *dispatcher=new  RequestDispatcher();
	string json;
	while(getline(cin,json)){
		cout<<dispatcher->dispatchRequest(json)<<endl;
	}
	delete dispatcher;
	return 0;
}